package com.chinaso.kotlinprojcet.ui

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.webkit.WebChromeClient
import android.webkit.WebViewClient
import com.chinaso.kotlinprojcet.R
import kotlinx.android.synthetic.main.activity_web.*

/**
 * Created by ThinKPad on 2017/11/25.
 */
class WebActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_web)
        val url = intent.getStringExtra("url")
        webView.loadUrl(url)
        webView.webChromeClient = WebChromeClient()
        webView.webViewClient = WebViewClient()

    }
}